<template>
	<view class="itemCon">
		<view class="date">
			12:12
		</view>
		<view class="item">
			<view class="top">
				<view class="titCon">
					<text class="name">时长发放</text>
					<view class="status">
						<view v-if="flag" class="has">
							<!-- <u-icon name="checkmark-circle"  size="23"></u-icon>已读 -->
							<text class="iconfont iconyidu"></text>已读
						</view>
						<view v-else class="none">
							<view class="tag">未读</view>
						</view>
					</view>
				</view>
				<text class="time">2020-05-08 02:27</text>
	
			</view>
			<u-line color="#D3D3D3" />
			<view class="content" :class="{none:flag}">
				您参加的志愿活动（XXXXXX）以公示服务时长，您的服务时长为XX小时，时长公示截止至0000-00-00 00:00，请尽快查看，如有问题请及时联系志愿队。
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				flag: false
			}
		},
		methods: {
			tabClick() {

			}
		}
	}
</script>

<style lang="scss" scoped>
	@import "@/commom/styles/icons.css";
	.itemCon{
		.date {
			width: 100%;
			height: 66rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			font-size: 22rpx;
			font-weight: 400;
			color: #666666;
		}
		
		.item {
			padding: 25rpx;
			background: #FFFFFF;
			border-radius: 10rpx;
		
			.top {
				padding-bottom: 21rpx;
				display: flex;
				flex-direction: column;
		
				.titCon {
					display: flex;
					justify-content: space-between;
					align-items: center;
		
					.name {
						font-size: 32rpx;
						font-weight: 600;
						color: #333333;
					}
		
					.status {
						.has {
							display: flex;
							align-items: center;
							color: #B3B3B3;
							font-size: 26rpx;
							font-weight: 400;
							color: #B3B3B3;
		
							.iconfont {
								font-size: 26rpx;
								margin-right: 7rpx;
							}
						}
		
						.none {
							.tag {
								font-size: 26rpx;
								display: flex;
								align-items: center;
								padding-left: 11rpx;
								padding-right: 11rpx;
								height: 37rpx;
								background: #FF5252;
								color: #fff;
								border-radius: 6rpx;
							}
						}
					}
				}
		
				.time {
					padding-top: 5rpx;
					font-size: 22rpx;
					font-weight: 400;
					color: #666666;
				}
			}
		
			.content {
				padding-top: 20rpx;
				font-size: 26rpx;
				font-weight: 400;
				height: 185rpx;
				color: #666666;
		
		
				&.none {
					color: #999999;
				}
			}
		}
	}
	
</style>
